package com.txh.blog.vo;

/**
 * json返回类
 * @param <T>
 */
public class ResultJson<T> {
    /**
     * 信息
     */
    private String msg;

    /**
     * 响应码
     */
    private int code;

    /**
     * 返回数据
     */
    private T data;

    public ResultJson(int code,String msg,T data){
        this.code= code;
        this.msg= msg;
        this.data =data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
